﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace PokeTD_MapEditor {
    public partial class TilesetImport : Form {
        public TilesetImport() {
            InitializeComponent();
        }

        private string _fileName;
        private int _tileHeight;
        private int _tileWidth;

        public string FileName {
            get { return _fileName; }
        }
        public int TileHeight {
            get { return _tileHeight; }
        }
        public int TileWidth {
            get { return _tileWidth; }
        }

        private void btnOpen_Click(object sender, EventArgs e) {
            OpenFileDialog ofd = new OpenFileDialog();
            ofd.Filter = "PNG-Dateien|*.png";
            if (ofd.ShowDialog() == DialogResult.OK) {
                txtPath.Text = ofd.FileName;
            }
        }

        private void btnOK_Click(object sender, EventArgs e) {
            _fileName = txtPath.Text;
            _tileHeight = (int)numHeight.Value;
            _tileWidth = (int)numWidth.Value;
        }
    }
}
